/********************************************************************************
 * @filename main.c
 * Copyright (c) 2012 - UFAM Universidade Federal do Amazonas
 *
 * @brief Program for make communication between dsPIC and  camera C328R
 *
 * Originally created on 03/05/2012 by Igor Oliveira
 *------------------------------------------------------------------------------
 * $LastChangedBy:: Igor                                                   $
 * $LastChangedDate:: 2012-05-03 03:26:05 -0400 (Qui, 12 Abr 2012)           $
 * $Revision:: 01                                                            $
 *------------------------------------------------------------------------------
 */

 //#include "c328r.h"
//////////////////////////////

/*
void config_initial(){
     UART1_Write(sSendSync.ID);
     UART1_Write(sSendSync.Parameter1);
     UART1_Write(sSendSync.Parameter2);
     UART1_Write(sSendSync.Parameter3);
     UART1_Write(sSendSync.Parameter4);
     UART1_Write(sSendSync.Parameter5);
     Delay_ms(10);
     //send Get Picture AA 04 01 00 00 00
     UART1_Write(0xAA);
     UART1_Write(0x04);
     UART1_Write(0x01);
     UART1_Write(0x00);
     UART1_Write(0x00);
     UART1_Write(0x00);
     //Snapshot AA 05 00 00 00 00
     UART1_Write(0xAA);
     UART1_Write(0x05);
     UART1_Write(0x00);
     UART1_Write(0x00);
     UART1_Write(0x00);
     UART1_Write(0x00);
     //Set Package Size AA 06 08 00 02 00
     UART1_Write(0xAA);
     UART1_Write(0x06);
     UART1_Write(0x08);
     UART1_Write(0x00);
     UART1_Write(0x02);
     UART1_Write(0x00);
     //Set Baudrate AA 07 7F 01 00 00
     UART1_Write(0xAA);
     UART1_Write(0x07);
     UART1_Write(0x7F);
     UART1_Write(0x01);
     UART1_Write(0x00);
     UART1_Write(0x00);
     //Reset AA 08 00 01 00 00
     UART1_Write(0xAA);
     UART1_Write(0x08);
     UART1_Write(0x00);
     UART1_Write(0x00);
     UART1_Write(0x00);
     UART1_Write(0xFF);
     //Power off AA 09 00 00 00 00
     UART1_Write(0xAA);
     UART1_Write(0x09);
     UART1_Write(0x00);
     UART1_Write(0x00);
     UART1_Write(0x00);
     UART1_Write(0x00);
}*/